package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

class Solution896 {
    public boolean isMonotonic(int[] nums) {
        return ArrayUtils.isMonotonic(nums);
    }
}

public class leetcode896 {
    public static void main(String[] args) {
        Solution896 solution896 = new Solution896();
        int[] nums = {1,2,2,3};
        int[] nums1 = {1,3,2};
        int[] nums2 = {2,2,2,2};
//        System.out.println(solution896.isMonotonic(nums));
        System.out.println(solution896.isMonotonic(nums1));
//        System.out.println(solution896.isMonotonic(nums2));
    }
}
